from flask import Blueprint, request

from utils.response import success, fail

from services.llm_service import get_enabled_llm_list

llm = Blueprint('llm', __name__)

# 判断这个人是否为僵尸用户
@llm.route('/get_enabled_llm')
def get_enabled_llm():
    # 调用analyse_user_service函数，传入user_id，获取分析结果
    result = get_enabled_llm_list()
    if result is None:
        return fail('weibo not found')
    return success(result)